<?php if(empty($feeds)): ?>
		<h3>Error</h3>		
<?php else: 
	foreach($feeds as $item):
?>
	<div class="content-item">								
		<div class="span3 item-image">
			<img src="<?php echo IMAGE_UPLOAD_DIR.$item['strPicture']; ?>"/>
		</div>
		<div class="span3 item-text">
			<h4>
				<a class="modal-trigger" href="<?php echo base_url().'digradio/content/'.get_type_name($item['fk-tb_mas_content_types']).'/'.$item['intID']; ?>" >
					<?php echo $item['strTitle']; ?>
				</a>
			</h4>
			<p>
				<?php echo $item['strSecondary']; ?>
			</p>
		</div>	
		<div class="clear"></div>	
	</div>					
<?php endforeach; ?>
<?php endif; ?>
<script type="text/javascript">
	$(document).ready(function(e){
		
		$('a.modal-trigger').on('click', function(e) {
			e.preventDefault();
			var url = $(this).attr('href');	
			loadContentInfo(url);			
		});
		
		function loadContentInfo(url)
		{		
			$('#modal').html('<div class="modal-header" style="height:20px;"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button></div><iframe src="'+url+'" frameborder=0 width="960" style="padding:10px;margin:0 auto;height:400px;" >');
			$('#modal').modal('show');				
		}
	});
</script>